package com.qfedu.yanglao20admin.equipment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qfedu.yanglao20.entity.equipment.FacilityManage;
import com.qfedu.yanglao20admin.equipment.param.FacilityManageParam;
import com.qfedu.yanglao20admin.equipment.vo.FacilityManageVO;

import java.util.List;

/**
 * @author yujie
 * @data 2023/4/26 16:44
 */
public interface FacilityManageDao extends BaseMapper<FacilityManage> {

    /**
     * 分页查询设备管理信息
     *
     * @param param 分页信息
     * @return 设备关系信息
     */
    List<FacilityManageVO> selectList(FacilityManageParam param);

    /**
     * 根据设备编号查询信息
     *
     * @param facilityNum
     * @return
     */
    FacilityManage selectByfacilityNum(String facilityNum);

    /**
     * 根据 设备名称查询信息
     *
     * @param facilityName
     * @return
     */
    FacilityManage selectByName(String facilityName);

    /**
     * 根据 id 修改绑定状态信息
     *
     * @param id
     */
    void updatestateFlag(Integer id);
}
